home *** CD-ROM | disk | FTP | other *** search
- %% $Id: xyps-c.doc,v 2.9 1994/06/09 14:38:56 ross Exp $
- %%
- %% XY-pic ``Colour extension'' PostScript backend support.
- %% Copyright (c) 1993-1994 Ross Moore <ross@mpce.mq.edu.au>
- %%
- %% This file is part of the XY-pic package for graphs and diagrams in TeX.
- %% See the companion README and INSTALL files for further information.
- %% Copyright (c) 1991-1994 Kristoffer H. Rose <kris@diku.dk>
- %%
- %% The XY-pic package is free software; you can redistribute it and/or modify
- %% it under the terms of the GNU General Public License as published by the
- %% Free Software Foundation; either version 2 of the License, or (at your
- %% option) any later version.
- %%
- %% The XY-pic package is distributed in the hope that it will be useful, but
- %% WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
- %% or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
- %% for more details.
- %%
- %% You should have received a copy of the GNU General Public License along
- %% with this package; if not, write to the Free Software Foundation, Inc.,
- %% 675 Mass Ave, Cambridge, MA 02139, USA.
- %%
- \ifx\xypscloaded\relax \message{not reloaded}\endinput \fi
- \let\xypscloaded=\relax \xycatcodes
-
- \DOCMODE3%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-
- This included file (version \stripRCS$Revision: 2.9 $) provides \XY-ps
- support for the effects defined in the |color| extension.
-
- \DOCMODE2%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- \DOCHEADER
-
- All effects defined in the |color| extension can
- be implemented using the \PS\ back-end, loaded as |xyps|.
- This file provides ``generic'' \PS\ code which is known to work
- correctly with most drivers. No attempt is made to provide special
- code for particular drivers; for driver-specific variations, consult
- the appropriate |xyps-|<driver> file.
-
- \DOCMODE(
- \xyrequire{color}
- \xyrequire{ps}
- \xycatcodes
- \DOCMODE)
-
- \DOCMODE(
- \xydef@\xyPSnewcolor@#1#2{%
- \expandafter\DN@\expandafter{\csname *shape@#1@\endcsname}%
- \DNii@{\relax}\ifx\next@\nextii@\newxycolor{#1}{}\relax\fi
- \expandafter\DNii@\expandafter{\csname xyPSshape@#1@\endcsname}%
- \expandafter\def\nextii@{\xyPScolor@{#2}}%
- \ifx\nextii@\empty\expandafter\def\next@{\xyPSnotimplemented@@`#1'@@}%
- \else
- \edef\tmp@{\noexpand\let\expandafter\noexpand\next@
- \expandafter\noexpand\nextii@}\expandafter\tmp@\fi }
-
- \xydef@\xyPScolor@#1{\bgroup
- \def\preStyle@@{\xyPSpre@}\def\postStyle@@{\xyPSpost@}%
- \let\modPSboxz@=\modXYstyle@
- % \xyPSsplitPS@{mark{#1}xyc}{xypop}%
- \xyPSsplitPS@{#1 /xycolor{#1}def }{}%
- \toks@={\egroup\let\xy@style@=\relax \def\Drop@@}%
- \expandafter\addtotoks@\expandafter{\expandafter{\Drop@@}\def\Connect@@}%
- \expandafter\addtotoks@\expandafter{\expandafter{\Connect@@}}\the\toks@}
-
- \xyPSalternative@{\xycolor@}{color}
- \xyPSalternative@{\newxycolor@}{newcolor}
- \DOCMODE)
-
- \DOCMODE2%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-
- \paragraph*{The end \& Log}\leavevmode
-
- \DOCMODE(
- \xyendinput
-
- % $Log: xyps-c.doc,v $
- % Revision 2.9 1994/06/09 14:38:56 ross
- % Release 3beta.
- % Includes support for special effects: Rotations, Scaling, Line-width, Colour.
- % Back-ends are separated into separate files.
- % More back-ends are supported, experimentally --- needs testing.
- %
- % Revision 2.9 1994/06/09 14:38:56 ross
- % Release 3beta.
- % Includes support for special effects: Rotations, Scaling, Line-width, Colour.
- % Back-ends are separated into separate files.
- % More back-ends are supported, experimentally --- needs testing.
- %
- % NEW for version 2.9 by by Ross Moore.
- \DOCMODE)
-
- \DOCMODE3%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-
- % Tell Emacs that this is a LaTeX document and how it is formatted:
- % Local Variables:
- % mode:latex
- % fill-column:77
- % fill-prefix:""
- % End:
-